#include <iostream>

using namespace std;

int main()
{
	long res = 0;
	long tmp;
	
	for(;;)
	{
		cin >> tmp;
		
		res += tmp;
		
		if(tmp == 0)
		{
			break;
		}
		cout << "\nThe sum: " << res << endl;
	}
	
	cout << "bye";
	
	return 0;
}
